//
//  comicCommentView.m
//  动漫之家
//
//  Created by 王少泽 on 16/12/26.
//  Copyright © 2016年 王少泽. All rights reserved.
//

#import "comicCommentView.h"
#import "comicCommentTableViewCell.h"

@implementation comicCommentView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:[self loadTableView]];
    }
    return self;
}

- (UITableView* )loadTableView
{
    if (_commentTable == nil) {
        self.commentTable = [[UITableView alloc]initWithFrame:self.bounds style:UITableViewStyleGrouped];
        self.commentTable.userInteractionEnabled = NO;
        [self.commentTable registerNib:[UINib nibWithNibName:@"comicCommentTableViewCell" bundle:nil] forCellReuseIdentifier:@"commentCell"];
        
    }
    return self.commentTable;
}

@end
